5d2b00
@@ -128,6 +128,12 @@
synchronized void write(String msg) {
 
     void remove() {
       try {
+        if (in != null) {
+          in.close();
+        }
+        if (out != null) {
+          out.close();
+        }
         FileUtils.forceDelete(file);
         isRemoved = true;
       } catch (Exception e) {
